import request from '@/utils/request'

// 查询子公司信息列表
export function listCompanySubsidiary(query) {
  return request({
    url: '/subsidiary/companySubsidiary/list',
    method: 'get',
    params: query
  })
}

// 查询子公司信息详细
export function getCompanySubsidiary(id) {
  return request({
    url: '/subsidiary/companySubsidiary/' + id,
    method: 'get'
  })
}

// 保存子公司信息
export function saveCompanySubsidiary(data) {
  return request({
    url: '/subsidiary/companySubsidiary/save',
    method: 'post',
    data: data
  })
}

// 删除子公司信息
export function delCompanySubsidiary(id) {
  return request({
    url: '/subsidiary/companySubsidiary/' + id,
    method: 'delete'
  })
}

// 导出子公司信息
export function exportCompanySubsidiary(query) {
  return request({
    url: '/subsidiary/companySubsidiary/export',
    method: 'get',
    params: query
  })
}
